package demo.android.com.mvpdemo.mybutterknife;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.widget.TextView;

import com.example.annotations.BindView;

import demo.android.com.butterknife.ButterKnife;
import demo.android.com.butterknife.Unbinder;
import demo.android.com.mvpdemo.R;

/**
 * Created by Vya on 2018/2/11 0011.
 */

public class TestButterKnifeActivity extends AppCompatActivity {
        @BindView(R.id.tv_text)
        TextView mTextView;
    private Unbinder unbinder;
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.test_butterknife);
        unbinder = ButterKnife.bind(this);
        //BindingView bindingView = new BindingView(this)  ;
        mTextView.setText("设置View");
    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
        unbinder.unbind();
    }
}
